How do I ensure that a string containing uft8 characters is correctly written to mysql in my C progr